package com.devchronicles.dataaccessobject;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
@Entity
public class Movie implements Serializable {
private static final long serialVersionUID = -6580012241620579129L;
@Id @GeneratedValue
private int id;
private String title;
private String description;
private int price;
// jaka warto uywana w czasie dziaania programu,
// ktrej nie trzeba zapisywa
@Transient
private int runtimeId;
public Movie() {}
public int getId() {
return this.id;
}
public void setId(int id) {
this.id = id;
}
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public int getPrice() {
return this.price;
}
public void setPrice(int price) {
this.price = price;
}
public int getRuntimeId() {
return this.runtimeId;
}
public void setRuntimeId(int runtimeId) {
this.runtimeId = runtimeId;
}
}